package com.temp.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class CategoryDTO {

    private Long id;

    @NotBlank(message = "apiMsg.titleNotNull")
    private String title;

    @NotBlank(message = "apiMsg.iconNotNull")
    private String icon;

    @NotBlank(message = "apiMsg.colorNotNull")
    private String color;

    @NotBlank(message = "apiMsg.descriptionNotNull")
    @Length(max = 50, message = "apiMsg.descriptionLength,50")
    private String description;
}
